﻿using System.ComponentModel;

namespace PrismFactory.SoftwareFactory.Views.CreateSolution
{
    public class AssemblyItem : INotifyPropertyChanged
    {
        private string name;

        public string Name
        {
            get { return name; }
            set
            {
                name = value;
                OnNotifyPropertyCahnged("Name");
            }
        }

        private bool exists;

        public bool Exists
        {
            get { return exists; }
            set
            {
                exists = value;
                OnNotifyPropertyCahnged("Exists");
            }
        }

        private void OnNotifyPropertyCahnged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}